package com.soft.javase.day04.raisesalary;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/21
 */
class Employee extends Person implements Add {
    private String ID;
    private double wage;
    private int workAge;

    public Employee(String name, String address, String ID, double wage, int workAge) {
        super(name, address);
        this.ID = ID;
        this.wage = wage;
        this.workAge = workAge;
    }

    public String getID() {
        return ID;
    }

    public double getWage() {
        return wage;
    }

    public void setWage(double wage) {
        this.wage = wage;
    }

    public int getWorkAge() {
        return workAge;
    }

    @Override
    public void raiseSalary() {
        this.wage *= 1.1;
    }

    @Override
    public String toString() {
        return "Employee{ID=" + ID + ", wage=" + wage + ", workAge=" + workAge +
                ", name=" + getName() + ", address=" + getAddress() + "}";
    }
}

